import request from "@/utils/request";

export function page(sup,page,pageSize) {
    return request({
        url: '/admin/getSupplier?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:sup
    })
}
export function changeSupplier(sup) {
    return request({
        url: '/admin/changeSupplier',
        method: 'post',
        data:sup
    })
}

export function deleteSupplier(id) {
    return request({
        url: '/admin/deleteSupplier?id='+id,
        method: 'delete'
    })
}

export function addSupplier(sup) {
    return request({
        url: '/admin/addSupplier',
        method: 'post',
        data:sup
    })
}


export function getSupplierList() {
    return request({
        url: '/admin/getSupplierList',
        method: 'get',
    })
}


